import {createApp} from 'vue'
import App from './App.vue'
import {createStore} from 'vuex'

import axios from "axios"

import store from "./store"

import router from "./router/index.js"



var vm = createApp(App)

vm.use(router)

vm.use(store)

vm.mount("#app")

vm.config.globalProperties.$axios = axios;
vm.config.globalProperties.$ip = "http://127.0.0.1:9000";

import {$get, $postx, $postj, $postf } from '@/ajax/index.js'

vm.config.globalProperties.$get= $get; 
vm.config.globalProperties.$postf= $postf; 
vm.config.globalProperties.$postj= $postj; 
vm.config.globalProperties.$postx= $postx; 

vm.config.globalProperties.$showErr= function( msg ) {
	store.state.erropen = true;
	store.state.errmsg=msg
}






